import type { RouteRecordRaw } from 'vue-router'
import { $t } from '@/locales'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/videoManagement',
  component: Layout,
  redirect: '/videoManagement/index',
  name: 'videoManagement',
  meta: {
    title: ' 落地页管理',
    icon: 'ic:baseline-dvr',
  },
  children: [
    {
      path: 'index',
      name: 'videoManagementIndex',
      component: () => import('@/views/videoManagement/index.vue'),
      meta: {
        title: '落地页管理',
        menu: false,
        breadcrumb: false,
        activeMenu: '/videoManagement',
      },
    },
    {
      path: 'detail',
      name: 'videoManagementDetail',
      component: () => import('@/views/videoManagement/detail.vue'),
      meta: {
        title: '落地页表单',
        auth: ['permission.browse'],
        menu: false,
        breadcrumb: false,
        activeMenu: '/videoManagement',
      },
    },
  ],
}

export default routes
